#ifndef __MON_OUT_H
#define __MON_OUT_H

// o1-A,o2-B,o3-C; i1-11,i2-12,i3-13,i4-14,i5-15,i6-16,i7-17,i8-18;
#define O1   0x0B
#define O2   0x0C
#define O3   0x0D

#define I1   0x11
#define I2   0x12
#define I3   0x13
#define I4   0x14
#define I5   0x15
#define I6   0x16
#define I7   0x17
#define I8   0x18

#define A1   0x21
#define A2   0x22
#define A3   0x23
#define A4   0x24

#define OR  0x50
#define AND    0x51
#define NOT   0x52

#define ERROR 1
#define OK    0

#define SBROS  flag_i = 0

#define ER(a,b,c,d,e,f) a+b+c+d+e+f
#define POISK_ERROR if(ER(flag_i,flag_o,flag_OR,flag_AND,flag_NOT,flag_adc)!=1)flag_error = ERROR

typedef struct 
{
 unsigned char arry_mon1[100],arry_mon2[100],arry_mon3[100];
 unsigned char time_out1,time_out2,time_out3;
 unsigned char flag_o1,flag_o2,flag_o3;
 unsigned char error_out;
}OUT;

extern OUT Out_time;

/*
	Прототипы функций
*/
extern void out_arry(unsigned char * mon_out);
extern void mon_out_(unsigned char p_lines);

#endif

